package com.ruoyi.ade.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ade.mapper.AdeRagLabResultMapper;
import com.ruoyi.ade.domain.AdeRagLabResult;
import com.ruoyi.ade.service.IAdeRagLabResultService;

/**
 * Ade Rag Lab ResultService业务层处理
 * 
 * @author wxh
 * @date 2025-07-23
 */
@Service
public class AdeRagLabResultServiceImpl implements IAdeRagLabResultService 
{
    @Autowired
    private AdeRagLabResultMapper adeRagLabResultMapper;

    /**
     * 查询Ade Rag Lab Result
     * 
     * @param id Ade Rag Lab Result主键
     * @return Ade Rag Lab Result
     */
    @Override
    public AdeRagLabResult selectAdeRagLabResultById(Long id)
    {
        return adeRagLabResultMapper.selectAdeRagLabResultById(id);
    }

    /**
     * 查询Ade Rag Lab Result列表
     * 
     * @param adeRagLabResult Ade Rag Lab Result
     * @return Ade Rag Lab Result
     */
    @Override
    public List<AdeRagLabResult> selectAdeRagLabResultList(AdeRagLabResult adeRagLabResult)
    {
        return adeRagLabResultMapper.selectAdeRagLabResultList(adeRagLabResult);
    }

    /**
     * 新增Ade Rag Lab Result
     * 
     * @param adeRagLabResult Ade Rag Lab Result
     * @return 结果
     */
    @Override
    public int insertAdeRagLabResult(AdeRagLabResult adeRagLabResult)
    {
        adeRagLabResult.setCreateTime(DateUtils.getNowDate());
        return adeRagLabResultMapper.insertAdeRagLabResult(adeRagLabResult);
    }

    /**
     * 修改Ade Rag Lab Result
     * 
     * @param adeRagLabResult Ade Rag Lab Result
     * @return 结果
     */
    @Override
    public int updateAdeRagLabResult(AdeRagLabResult adeRagLabResult)
    {
        return adeRagLabResultMapper.updateAdeRagLabResult(adeRagLabResult);
    }

    /**
     * 批量删除Ade Rag Lab Result
     * 
     * @param ids 需要删除的Ade Rag Lab Result主键
     * @return 结果
     */
    @Override
    public int deleteAdeRagLabResultByIds(Long[] ids)
    {
        return adeRagLabResultMapper.deleteAdeRagLabResultByIds(ids);
    }

    /**
     * 删除Ade Rag Lab Result信息
     * 
     * @param id Ade Rag Lab Result主键
     * @return 结果
     */
    @Override
    public int deleteAdeRagLabResultById(Long id)
    {
        return adeRagLabResultMapper.deleteAdeRagLabResultById(id);
    }
}
